package com.xjd.edu.course.controller;

import com.xjd.edu.api.client.user.UserClient;
import com.xjd.edu.toolkit.cache.GameRedisTemplate;
import com.xjd.edu.toolkit.lock.LockExecutor;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
public class Demo {


    @Autowired
    private UserClient userClient;

    @GetMapping("/course/demo")
    public Map<String, List<Object>> demo() throws Exception {
        userClient.deductMoney("what", 123456);
        Map<String, List<Object>> listMap = new HashMap<>();
        listMap.put("a",Arrays.asList(new Object[]{"a","b","c"}));
        return listMap;
    }
}
